import React, { Component } from 'react'
import { Switch, Route, Redirect } from 'react-router-dom'
import BaseSubject from '@/views/base/subject';
import SchoolTime from '@/views/base/schoolTime';
import SchoolModal from '@/views/base/modal';
class RouterView extends Component {
    constructor(props) {
        super(props)
    }

    render() {

        return (

            <Switch>
                <Route path="/base/subject" component={BaseSubject} />
                <Route path="/base/schoolTime" component={SchoolTime} />
                <Route path="/base/model" component={SchoolModal} />
                <Redirect to="/base/subject" />
            </Switch>

        )
    }

}

export default RouterView